import "babel-polyfill"
import "es6-promise/auto"
import "./index.less"
import React from "react"
import ReactDOM from "react-dom"
import { AppContainer as HMRContainer } from "react-hot-loader"
import { Provider } from "react-redux"
import {HashRouter as Router} from "react-router-dom"
import store from "store"
import quickClick from "quickclick"
import App from "app"
quickClick(document.body);
const render = (Component) => {
    ReactDOM.render(
        <HMRContainer>
         <Provider store={store}>
         <Router>
            <Component/>
         </Router>
        </Provider>
        </HMRContainer>,
        document.getElementById('root')
    );
};
render(App);
if (module.hot) {
    module.hot.accept(()=> {
        render(App)
    });
}